
<%= text_f f, :url, :size => "col-md-8", :help_block => _("e.g. https://ovirt.example.com/ovirt-engine/api"), :help_inline => documentation_button('5.2.7oVirt/RHEVNotes') %>
<%= checkbox_f f, :use_v4, :checked => f.object.use_v4?,
               :label => _('Use APIv4'),
               :help_inline => _("API v4 is the default version. Uncheck it if you want to use v3, which is deprecated and will be removed in the next release.") %>
<% unless f.object.use_v4?  %>
  <%= alert :header => '', :class => 'alert-warning', :close => false,
            :text => _("Please note, API v3 is deprecated and will be removed completely in the next Foreman release."), :size=> "col-md-8" %>
<% end %>
<%= text_f f, :user, :help_block => _("e.g. admin@internal") %>
<%= password_f f, :password, :keep_value => true, :unset => unset_password? %>
<% datacenters = (f.object.uuid.nil? && controller.action_name != 'test_connection')  ? [] : f.object.datacenters rescue []%>
<%= selectable_f(f, :uuid, datacenters, {}, {:label => _('Datacenter'),
                 :onchange => 'tfm.computeResource.ovirt.datacenterSelected();',
                 :help_inline_permanent => load_datacenters_button_f(f, !datacenters.empty?) }) %>
<% quotas = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.quotas.all rescue []%>
<%= select_f f, :ovirt_quota, quotas, :id, :name, {}, :label => _("Quota ID") %>
<%= select_f f, :display_type, f.object.display_types, :to_s , :upcase, { }, :label => _("Default Display Type") %>
<%= select_f f, :keyboard_layout, f.object.keyboard_layouts,:downcase, :to_s, { }, :label => _("Default VNC Keyboard") %>
<%= textarea_f f, :public_key, :label => _("X509 Certification Authorities"), :size => "col-md-8",
  :placeholder => _("Optionally provide a CA, or a correctly ordered CA chain. If left blank, a self-signed CA will be populated automatically by the server during the first request.") %>
